import { Component, Injector, ViewChild } from '@angular/core';
import { appModuleAnimation } from '@shared/animations/routerTransition';
import { AppComponentBase } from '@shared/common/app-component-base';
import { DataItemDetailsComponent } from './dataitem-details.component';
import { DataItemTreeComponent } from './dataitem-tree.component';
import { IBasicDataItemInfo } from './basic-dataitem-info';
@Component({
    templateUrl: './data-items.component.html',
    animations: [appModuleAnimation()]
})
export class DataItemsComponent extends AppComponentBase {
    @ViewChild('ouDataItemTree') ouDataItemTree: DataItemTreeComponent;
    @ViewChild('ouDataItemDetails') ouDataItemDetails: DataItemDetailsComponent;
    basicDataItemInfo: IBasicDataItemInfo = null;
    constructor(injector: Injector) {
        super(injector);
    }
    ouSelected(event: any): void {
        this.basicDataItemInfo = event;
        this.ouDataItemDetails.basicDataItemInfo = event;
    }
}
